//
//  SPPolyline.h
//  SPMapKit
//
//  Created by zhangbo on 2017/9/9.
//  Copyright © 2017年 zhangbo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SPDefaultAnnotation.h"

/**
 折线
 */
@interface SPPolyline : SPDefaultOverlay
{
    CGRect _mapRect;
}

@property(nonatomic, strong) NSMutableArray *gpspointList;

-(void) addGPSPoint:(CLLocationCoordinate2D) point;

@end

/**
 直线
 */
@interface SPSingleLine : SPDefaultOverlay

-(instancetype) initWithPoints:(CLLocationCoordinate2D) p0 p1:(CLLocationCoordinate2D) p1;

@property(nonatomic, assign) CLLocationCoordinate2D p0;
@property(nonatomic, assign) CLLocationCoordinate2D p1;

@end

/**
 多边形
 */
@interface SPPolygon : SPPolyline

@end

/**
 圆
 */
@interface SPCircle : SPDefaultOverlay

/**
 半径，单位米
 */
@property(nonatomic, assign) CGFloat radius;

@end
